package com.zhuanzhuan.hero.user.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName Mobile
 * @Description  校验字段必须为手机号格式
 * @Author hanjunjun
 * @Date 2024/6/21 14:51
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Mobile {

    String message() default "手机号格式错误";
}
